home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-05-17 | 825 b | 26 lines |
- '**********NO AMAL?NEVER FEAR-TOTAL BEGINNERS IS HERE!-By Mark Wickson****************
- Rem Easy AMOS users will have noticed that they do not have the incredibly
- Rem useful AMAL-But don't worry as you can use variables to move and animate
- Rem things.
- Rem All we do here is substitute the Bobs horizontal coordinate for a variable
- Rem -And increase it by 1 every loop-making the Bob look as if it is moving
- Rem right.
- Rem the line:
- Rem If X>=320 Then Edit
- Rem says that if the "X" variable is greater than or equal to 320 then go back
- Rem tothe editor-Of course you could take this line out,but "X" would keep
- Rem increasing `forever'.
- Screen Open 0,320,256,16,Lowres
- Flash Off
- Curs Off
- Cls 0
- Load "ATTBG:NICECAR.Abk"
- Get Bob Palette
- Double Buffer
- X=10
- Do
- X=X+1
- Bob 1,X,110,2
- If X>=320 Then Edit
- Wait 1
- Loop